﻿@model Lion.WeiXin.Core.Models.OrderModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    Lion.WeiXin.Core.Models.VipCardModel cardModel = ViewData["card"] as Lion.WeiXin.Core.Models.VipCardModel;
}
@section ChildPageJs {
    <script src="/Scripts/App_Scripts/OrderShow.js" type="text/javascript"></script>
}
<form id="fmSave" name="fmSave" enctype="multipart/form-data">
    <div class="titstyle01 clearfix">
        <strong>订单详情</strong>
    </div>
    <div class="boxstyle01 clearfix pt25 pb10">
        <div class="boxstyle01 wh_in mb10">
            <span class="titstyle02"><span class=" ico_searchcnt mt10 f_l"></span>订单详细</span>
            <input type="hidden" id="hdAID" value="@Model.Code" />
            <table class="tabshyle03 wh_in mb10">
                <tr >
                    <td>订单号：@Model.Code</td>
                    <td>创建时间：@Model.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")</td>                    
                    <td>状态：@if (Model.Status == 0)
                           { <span>@Model.StatusName</span>}
                           else
                           { <span class="cf60">@Model.StatusName</span>}</td>
                    
                    <td><input type="hidden" id="status" value="@Model.Status"/> </td>
                </tr>
                 <tr >
                    <td>总计：￥<span class="cf60"> @Model.Total</span> </td>
                    <td>实收：￥<span class="cf60"> @Model.Payment</span> </td>
                    <td></td>
                    <td> </td>
                </tr>
                <tr >
                    <td>客户姓名：@cardModel.RealName</td>
                    <td>卡号：@Model.Buyer  </td>
                    <td>卡号预留电话:@cardModel.Phone</td>
                    <td>订单联系电话：@Model.Buyer_Phone  </td>
                </tr>
                <tr >                   
                    <td>消费时间：@Model.Buyer_Appointment.ToString("yyyy-MM-dd HH:mm:ss") <span class="cf60">(按此时间提前接送客户)</span></td>
                     <td>支付类型:@Model.PayType</td>
                    <td></td>
                    <td></td>
                </tr>
                 <tr>                   
                    <td>客户备注：<textarea style="width: 100%; height: 50px;" cols="10" rows="20" id="Buyer_Note" name="Buyer_Note">@Model.Buyer_Note</textarea></td>
                     <td><input type="button" class="btn02 f_l m15" id="btnAddRemark" value="修改备注" /></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </div>
        <div class="boxstyle01 wh_in mb10">
            <table class=" clear tabshyle03 table100" id="TableList">
                <thead>
                    <tr bgcolor="#e0ecf2" class="f_l mr10 mt5">订单详细</tr>
                    <tr bgcolor="#e0ecf2">
                        <th width="5%" style="text-align: left">
                            <input type="checkbox" value="全选" id="checkall" name="checkall" />@Html.Label("checkall", "全选")
                        </th>
                        <th>
                            <strong>图片</strong>
                        </th>
                        <th>
                            <strong>产品名称</strong>
                        </th>
                        <th>
                            <strong>原价</strong>
                        </th>
                        <th>
                            <strong>数量</strong>
                        </th>
                        <th>
                            <strong>折扣</strong>
                        </th>
                        <th>
                            <strong>折后价</strong>
                        </th>
                        <th>
                            <strong>小计</strong>
                        </th>
                        @* <th width="20%">
                        <strong>操作</strong>
                    </th>*@
                    </tr>
                </thead>
                <tbody>
                    @foreach (Lion.WeiXin.Core.Models.Order_DetailsModel item in Model.OrderItems)
                    {
                        <tr class="t_c" id="template" bgcolor="White">
                            <td style="text-align: left" id="td_checkbox">
                                <input type="checkbox" id="checkbox" />
                            </td>
                            <td id="td_Image">
                                <img src="@item.Image" style="width:80px;height:80px;" class="v_mid mt5 mb5"  alt="@item.ProductName" /></td>
                            <td id="td_ProductName">@item.ProductName</td>
                            <td id="td_Price">￥ @item.Price</td>
                            <td id="td_Quantity">@item.Quantity</td>
                            <td id="td_Discount">@item.Discount</td>
                            <td id="td_BuyPrice">￥ @item.BuyPrice</td>
                            <td id="td_Total">￥ @(item.BuyPrice * item.Quantity)</td>
                        </tr>
                    }
                    <tr>
                        <td colspan="10" align="center" id="emptyDataTD" style="display: none;">暂时没有数据
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" align="center" id="errorDataTD" style="display: none;">获取数据出现异常
                        </td>
                    </tr>

                </tbody>
                <tr bgcolor="#e0ecf2">
                    <td colspan="10">
                        <input type="button" class="btn02 f_l m15" id="btnSave" value="确认消费" />
                        <input type="button" class="btn02 f_l m15" id="btnCancel" value="取 消" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
